package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 厂房信息对象 factory
 *
 * @author ruoyi
 * @date 2023-09-21
 */
public class Factory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 厂房名称 */
    @Excel(name = "厂房名称")
    private String name;

    /** 厂房面积 */
    @Excel(name = "厂房面积")
    private Long area;

    /** 厂房位置 */
    @Excel(name = "厂房位置")
    private String factoryLocation;

    /** 所有者用户 id */
    @Excel(name = "所有者用户 id")
    private Long userId;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Long isDelete;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setArea(Long area)
    {
        this.area = area;
    }

    public Long getArea()
    {
        return area;
    }
    public void setFactoryLocation(String factoryLocation)
    {
        this.factoryLocation = factoryLocation;
    }

    public String getFactoryLocation()
    {
        return factoryLocation;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("area", getArea())
                .append("factoryLocation", getFactoryLocation())
                .append("userId", getUserId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isDelete", getIsDelete())
                .toString();
    }
}
